package com.doaio.springbootmybatis.mapper;

import com.doaio.springbootmybatis.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from t_user where phone = #{phone}")
    User findUserByPhone(@Param("phone") String phone);

}
